<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="jquery/jquery1.9/jquery-1.9.0.js"></script>
    <style>
        img{
            width:50px;
            height: 50px;
        }

    </style>
    <script>
        $(function(){
            $("input:eq(0)").click(function(){
                $("img").animate({
                    "margin-left":"400px"
                },2000,function(){
                    $("img").animate({
                        "margin-top":"400px"
                    },2000,function(){
                        $("img").animate({
                            width:"500px",
                            height:"500px"
                        },2000,function(){
                            $("img").animate({
                                width:"0px",
                                height:"0px"
                            },1000,function(){
                                alert("动画完成");
                            });
                        });
                    });
                });
            });
        });
    </script>
</head>
<body>
    <input type="button" value="开始">
    <hr>
    <img src="images/apple.gif" alt="">
</body>
</html>